wayland: Fix submenu positioning
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Mar 2014 17:30:21 +0000 (13:30 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Mar 2014 17:40:04 +0000 (13:40 -0400)
commitc92a16fcf5fa154aeb653557bffa67e202ce0554
tree98c8ee11c82a752117bbd6ab75f89202f36a3c35
parentf712cd885021d888bb65fd6508d15f17a3a136a2
wayland: Fix submenu positioning

window->x / window->y are in "root window coordinates", e.g. relative
to the topmost toplevel. However, the coordinates in get_xdg_popup are
relative to the passed-in surface, so we need to do the reverse
translation here.
gdk/wayland/gdkwindow-wayland.c